package rnavigator.model;

/**
 * @author Elias la Cour
 */
public class Knot {

    private int pos1, pos2;
    private boolean pseudoKnot = false;

    Knot() {
    }

    Knot(int pos1) {
        this.pos1 = pos1;
    }

    public Knot(int pos1, int pos2) {
        this.pos1 = pos1;
        this.pos2 = pos2;
    }

    public Knot(int pos1, int pos2, boolean pseudoKnot) {
        this(pos1, pos2);
        this.pseudoKnot = pseudoKnot;
    }

    /**
     * @return the pos1
     */
    public int getPos1() {
        return pos1;
    }

    /**
     * @param pos1 the pos1 to set
     */
    public void setPos1(int pos1) {
        this.pos1 = pos1;
    }

    /**
     * @return the pos2
     */
    public int getPos2() {
        return pos2;
    }

    /**
     * @param pos2 the pos2 to set
     */
    public void setPos2(int pos2) {
        this.pos2 = pos2;
    }

    /**
     * @return the pseudoKnot
     */
    public boolean isPseudoKnot() {
        return pseudoKnot;
    }

    /**
     * @param pseudoKnot the pseudoKnot to set
     */
    public void setPseudoKnot(boolean pseudoKnot) {
        this.pseudoKnot = pseudoKnot;
    }
    
    @Override
    public String toString(){
        String str = ("knot - p1: "+pos1+ " p2: "+pos2+" isPseudoKnot: "+pseudoKnot);
        return str;
    }
}
